package com.itgaohe.dao.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("tb_blog_comments")
public class BlogComments {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long userId;
    private Long blogId;
    private String content;
    private Long cursorIndex ;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    private Integer status;
    private Integer isDeleted;
}